package com.arron.simplefactory.pizzastore;

import com.arron.simplefactory.pizzastore.improve.FactoryPizza;
import com.arron.simplefactory.pizzastore.improve.OrderPizza1;
import com.arron.simplefactory.pizzastore.improve.OrderPizza2;
import com.arron.simplefactory.pizzastore.improve.SimpleFactory;

class PizzaStore{
    public static void main(String[] args) {
        //new OrderPizza();
        /*
        Pizza pizza = new FactoryPizza().getPizza("greek");
        pizza.setName("greek");
        pizza.prepare();
        pizza.bake();
        pizza.cut();
        pizza.box();

        pizza = new FactoryPizza().getPizza("cheese");
        pizza.setName("cheese");
        pizza.prepare();
        pizza.bake();
        pizza.cut();
        pizza.box();

        pizza = new FactoryPizza().getPizza("pepper");
        pizza.setName("pepper");
        pizza.prepare();
        pizza.bake();
        pizza.cut();
        pizza.box();
         */

        //new OrderPizza1(new SimpleFactory());
        new OrderPizza2();
    }
}
